<!--
 * @Author: ykp 501436989@qq.com
 * @Date: 2024-10-01 16:49:32
 * @LastEditors: ykp 501436989@qq.com
 * @LastEditTime: 2025-07-13 09:33:42
 * @FilePath: \vue-ts\src\views\AboutView.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<script setup lang="ts">
import { useRouter, useRoute } from 'vue-router'
 
 const router = useRouter()
 const route = useRoute()
  
 function toAboutPage() {
   router.push({
     path: '/managementSystem',
     query: {
       title: '111'
     }
   })
 }
const openerfun = function () {
    window.opener && window.opener.addfunS && window.opener.addfunS('我是从子窗口传过来的参数');
  
 }  
</script>

<template>
  <div class="about">
    <h1>登录页</h1>
    <el-button @click="toAboutPage" type="primary">登录</el-button>
     <el-button @click="openerfun" type="primary">调用原页面</el-button>
  </div>
</template>

<style>
@media (min-width: 1024px) {
  .about {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
}
</style>
